package com.cdks.wuxiu.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 微信支付环境配置
 */
@Component
@ConfigurationProperties(prefix = "wxpay")
public class WxpayProps {
    /**
     * APP_ID
     */
    public static String appId;
    /**
     * APP_SECRET
     */
    public static String appSecret;
    /**
     * 商户号
     */
    public static String mchId;
    /**
     * 证书路径
     */
    public static String certPath;
    /**
     * 支付通知域名
     */
    public static String domain;

    public void setAppId(String appId) {
        WxpayProps.appId = appId;
    }

    public void setAppSecret(String appSecret) {
        WxpayProps.appSecret = appSecret;
    }

    public void setMchId(String mchId) {
        WxpayProps.mchId = mchId;
    }

    public void setCertPath(String certPath) {
        WxpayProps.certPath = certPath;
    }

    public void setDomain(String domain) {
        WxpayProps.domain = domain;
    }

}

